package com.shop.service.module.feign;

import com.shop.service.module.entity.LogEntity;
import com.shop.service.module.entity.Result;
import com.shop.service.module.feign.fallback.LogFeignServiceImpl;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(name = "log-service",fallback = LogFeignServiceImpl.class)
public interface LogFeignService {
    @PostMapping ("insert")
     Result insert(@RequestBody LogEntity logEntity);
}
